package com.yangxk.kadmin.web.module.system.form;

import com.yangxk.kadmin.web.module.system.service.impl.AuthServiceImpl;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Getter
@Setter
public class AuthForm {
    private Long id;

    private Long parentId = AuthServiceImpl.ROOT_PARENT_ID;

    @NotEmpty(message = "权限名不能为空")
    private String authName;

    private String url;

    private String router;

    @NotEmpty(message = "类型不能为空")
    private String type;

    private String icon;

    @NotNull(message = "排序号不能为空")
    private Integer seq;

    @Size(max = 200, message = "最大字数为200")
    private String remark;
}
